<?php

define('LOG_PATH', SCHEDULER_PATH . '/log');
define('LOCK_PATH', SCHEDULER_PATH . '/lock');

define('SCHEDULER_LOCK', LOCK_PATH.'/scheduler.pid');

define('YII_DEBUG', true);
define('YII_TRACE_LEVEL',3);
define('YII_ENABLE_EXCEPTION_HANDLER', false);
define('YII_ENABLE_ERROR_HANDLER', false);

define('SCHEDULER_LOG', 'app.scheduler');

// create routine task switch
define('CREATE_ROUTINE_TASK', true);

// cmd process interval, in second
define('SCHE_CMD_LOOP_INTERVAL', 1);

// job schedule interval, in second
define('SCHE_LOOP_INTERVAL', 3);

// scheduler exit time
define('SCHE_EXIT_TIME', '23:58');

// offset from current time, in minute
define('SCHE_OFFSET_TIME', 3);